package com.ruoyi.course.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 课程分类对象 course_categories
 * 
 * @author ruoyi
 * @date 2025-08-12
 */
public class CourseCategories extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类唯一ID */
    @Excel(name = "分类唯一ID")
    private String id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 排序优先级 */
    @Excel(name = "排序优先级")
    private String sortOrder;

    /** 状态（0-正常，1-禁用） */
    @Excel(name = "状态", readConverterExp = "0=-正常，1-禁用")
    private Integer status;

    /** 是否删除：0正常 1删除 */
    private Integer del;

    private List<Courses> courses;

    private List<CourseCategoryRelation> courseCategoryRelations;



    public List<Courses> getCourses() {
        return courses;
    }

    public void setCourses(List<Courses> courses) {
        this.courses = courses;
    }

    public List<CourseCategoryRelation> getCourseCategoryRelations() {
        return courseCategoryRelations;
    }

    public void setCourseCategoryRelations(List<CourseCategoryRelation> courseCategoryRelations) {
        this.courseCategoryRelations = courseCategoryRelations;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public void setSortOrder(String sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public String getSortOrder() 
    {
        return sortOrder;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    @Override
    public String toString() {
        return "CourseCategories{" +
                "id='" + id + '\'' +
                ", categoryName='" + categoryName + '\'' +
                ", sortOrder='" + sortOrder + '\'' +
                ", status=" + status +
                ", del=" + del +
                ", courses=" + courses +
                ", courseCategoryRelations=" + courseCategoryRelations +
                '}';
    }

    public Integer getDel()
    {
        return del;
    }

}
